package com.bidevalution.controller.api;

import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.bidevalution.business.service.BeParameterTemplateService;
import com.bidevalution.dao.entity.BeParameterTemplate;
import com.google.common.collect.Maps;
import com.qtp.core.model.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/beParameterTemplate")
@Api(tags = "方法参数模板列表")
public class BeParameterTemplateController extends BaseController {
	@Autowired
	private BeParameterTemplateService beParameterTemplateService;
	@ApiOperation(value = "查询参数模板列表", notes = "查询参数模板列表")
	@GetMapping("/getList")
	public Response<Map<String, Object>> selectList() {
		Map<String, Object> returnMap = Maps.newHashMap();
		for(BeParameterTemplate beParameterTemplate:beParameterTemplateService.selectList()) {
			returnMap.put(beParameterTemplate.getTemplateCode(), beParameterTemplate.getTemplateName());
		}
		return Response.ok(returnMap);
	}
}
